<?php
/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-27 1:30
 */

namespace App\Controller\Admin\Statics;

use App\Service\Statics\HomeStaticsService;
use Hyperf\Di\Annotation\Inject;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\PostApi;

/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-27 1:30
 * @ApiController(prefix="admin/statics/home_statics")
 */
class HomeStaticsController
{

    /**
     * @Inject()
     * @var HomeStaticsService
     */
    protected $homeStaticsService;

    /**
     * @Notes:【】
     * @User: zwc
     * @Date: 2022-05-27 1:32
     * @PostApi(path="home")
     */
    public function home()
    {
        //今日销售额
        $data = $this->homeStaticsService->home();
        _SUCCESS($data);
    }
}